import http from "@/util/http";

export function articleList(pageNo, pageSize, search) {
  return http.post(`/article/get?pageNo=${pageNo}&pageSize=${pageSize}`, search);
}

export function getArticleList(pageNo, pageSize) {
  return http.get(`/article/get?pageNo=${pageNo}&pageSize=${pageSize}`);
}

export function searchArticle(searchText) {
  return http.get(`/article/search?search=${searchText}`);
}

export function getArticleById(id) {
  return http.get(`/article/get/${id}`);
}
